-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Polish component docs #153
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Component docs look good. I'm noticing a couple of spacing issues that are probably not related to this particular PR, but calling them out just in case:
- Need more spacing between the global nav and the sidebar/content columns
- Need more spacing + a vertical border between the sidebar and content columns
I'm open to putting the borders between the different elements. I hesitated doing it only because I was on the fence about the short border when the prop type is nested. Do you think it would be better to omit the |
CodeDef.Block = Block; | ||
CodeDef.Bracket = Bracket; | ||
CodeDef.Comment = Comment; | ||
CodeDef.Keyword = Keyword; | ||
CodeDef.Identifier = Identifier; | ||
CodeDef.Number = NumberValue; | ||
CodeDef.Operator = Operator; | ||
CodeDef.String = StringValue; | ||
CodeDef.Type = Type; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call on doing this for the reuse/flexibility/consistency 💯
@LizBaker I removed the borders in a previous PR, but you're right, the nested props get kind of crazy without them. What if we tried indenting the props the way they're indented in the One Core docs, to emphasize that they're grouped together more? |
🎉 This PR is included in version 1.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Description
Fully polishes the component documentation with various refactors to ensure consistency.
Reviewer Notes
Visit a component such as the
<Button />
: https://pr-153.dlyi50rq9kt6c.amplifyapp.com/components/buttonSome components worth looking at:
/apis/nerdlet
=> Has constants/components/table-header-cell
=> Has wrapping prop default value/components/entity-count-query
=> Nested prop types/components/nrql-query
=> Has type defsRelated Issue(s) / Ticket(s)
If there are any related GitHub Issues or JIRA tickets, add links to them here.
Screenshot(s)